package com.example.stock.service;

import com.example.stock.comm.StrategyEnum;
import com.example.stock.comm.TranEnum;
import com.example.stock.vo.DataVo;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface IServiceAnalysis {
    /**
     * 批量分析
     * 1.查询rowData
     * 2.计算买卖点
     * 3.交易
     * 4.组合交易
     * 5.计算得分
     * 6.保存得分
     */

    void analysisBatch(Map<String, List<DataVo>> closeDataMap, StrategyEnum strategy, int m, int n, TranEnum tran, LocalDateTime startTime, int more);

    /**
     * 单个分析
     * 1.查询rowData
     * 2.计算买卖点
     * 3.交易
     * 4.计算得分
     * 5.保存得分
     */
    void analysisOne(List<DataVo> closeData,String tsCode, StrategyEnum strategy, int m, int n, TranEnum tran, LocalDateTime startTime, int more);

    Double analysisUnit(Map<String, List<DataVo>> closeDataMap, StrategyEnum strategy, int m, int n, TranEnum tran, LocalDateTime startTime, int more);

    Double analysis00(Map<String, List<DataVo>> closeDataMap, StrategyEnum strategy, TranEnum tran, LocalDateTime startTime, int more);

    Double analysisUnitA(Map<String, List<DataVo>> closeDataMap, StrategyEnum strategy, int m, int n, int i, TranEnum tran, LocalDateTime startTime, int more);
}
